.item {
  color: #222;
  cursor: pointer;
  height: 79px;
  &.top {
    background-color: #f0f0f0;
  }
  // .current 需要最高的优先级，因此要在 .top 的后面
  &.current {
    background-color: #4798ef;
    border-bottom: 1px solid #ddd;
    color: #fff;
  }
}

.inner {
  align-items: center;
  border-bottom: 1px solid #ddd;
  display: flex;
  height: 100%;
  margin-left: 1em;
  padding: 0.5em 1em 0.5em 0;
}
.item.current .inner {
  border-bottom: none;
}

.avatar {
  margin-right: 0.8em;
  position: relative;
  user-select: none;

  img {
    border: 1px solid #eee;
  }
}
.unread {
  background-color: #e66551;
  border-radius: 10px;
  box-shadow: 0px 0px 2px #999;
  color: #fff;
  display: block;
  font-size: 12px;
  height: 18px;
  line-height: 18px;
  margin-left: 5px;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -6px;
  text-align: center;
  top: -6px;
}
.item.current .avatar img {
  border-color: transparent;
}

.main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.name,
.owner-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name .tip-name {
  color: #aaa;
  font-size: 12px;
  margin-left: 0.5em;
}
.time {
  margin-left: 0.5em;
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.info-row {
  flex: 1;
  overflow: hidden;
  display: flex;
}
.info {
  flex: 1;
  overflow: hidden;
}
.side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.owner-name {
  color: #2f93f1;
  font-size: 12px;
}
.latest-chat {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  .notice {
    color: #f5222d;
    margin-right: 0.3em;
  }
}

.item.current {
  .name,
  .owner-name,
  .time,
  .tip-name,
  .latest-chat {
    color: #eee;
  }
}
